package org.example.doctorapi.data;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_dict_data")
public class SysDictData extends BaseDto  implements Serializable {
    @TableId
    private Integer dictCode;
    @NotNull(message = "字符并不能空")
    private int dictSort;
    private String dictLabel;
    private String dictValue;
    private String dictType;
    private String status;
    private String remark;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;

    public static final String DICT_CODE = "dict_code";
    public static final String DICT_SORT = "dict_sort";
    public static final String DICT_LABEL = "dict_label";
    public static final String DICT_VALUE = "dict_value";
    public static final String DICT_TYPE = "dict_type";
    public static final String STATUS = "status";
    public static final String REMARK = "remark";
    public static final String CREATE_BY = "create_by";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_BY = "update_by";
    public static final String UPDATE_TIME = "update_time";
}
